{extend name="base" /}
{block name="content"}
<div class="g-main">
    <div class="m-main-title">
        <div class="m-container-fluid">
            <a href="{:url('index/welcome')}"><i class="icon icon-home"></i>首页</a>
            <span class="icon-angle-right"></span>
            <span>门店管理</span>
            <span class="icon-angle-right"></span>
            <span>门店管理</span>
            <span class="icon-angle-right"></span>
            <span>门店列表</span>
            <a class="u-flush"><i class="icon-repeat"></i></a>
        </div>
    </div>
    <div class="m-main-content">
        <div class="m-container">
            <table class="m-table">
                <tr>
                    <th>
                        <div class="m-options cf">
                            <div class="m-opts fl"><a href="{:url('add')}" class="u-btn"><i class="icon-plus"></i>添加门店</a></div>
                        </div>
                    </th>
                </tr>
            </table>
            <form class="layui-form">
                <table class="m-table mt-10">
                    <tbody class="datas">
                    <tr>
<!--                        <th width="5%" style="text-align: center;">选择</th>-->
                        <th width="5%">ID</th>
                        <th >门店名称</th>
<!--                        <th>机构名称</th>-->
<!--                        <th>营业时间</th>-->
<!--                        <th>联系人</th>-->
<!--                        <th>电话</th>-->
<!--                        <th>商户余额</th>-->
<!--                        <th>身份证号</th>-->
<!--                        <th>商户地址</th>-->
<!--                        <th>推荐首页</th>-->
                        <th  width="20%">时间</th>
                        <th  width="10%">操作</th>
                    </tr>
                    {foreach name="data" item="v"}
                    <tr>
<!--                        <td align="center"><input type="checkbox" name="id[]" class="u-id" value="{$v.id}" lay-skin="primary" /></td>-->
                        <td>{$v.id}</td>
                        <td>{$v.name}</td>
<!--                        <td>{$v.name}</td>-->
<!--                        <td>{$v.startdt}&#45;&#45;{$v.enddt}</td>-->
<!--                        <td>{$v.contact_name}</td>-->
<!--                        <td>{$v.phone}</td>-->
<!--                        <td>{$v.balance}</td>-->
<!--                        <td>{$v.idcard_txt}</td>-->
<!--                        <td>{$v.address}</td>-->
<!--                        <td class="m-goods-status">-->
<!--                            <p class="clearfix">-->
<!--                                <span class="u-status{$v.is_flag ? ' u-status-primary' : ' u-status-danger'}" data-id="{$v.id}" data-key="is_flag" data-value="{$v.is_flag}">-->
<!--                                    {if $v.is_flag==1}是{else}否{/if}-->
<!--                                </span>-->
<!--                            </p>-->
<!--                        </td>-->
                        <td>
                            {$v.create_time}

                        </td>
                        <td class="m-opt">
                            <a href="{:url('add', ['id' => $v.id])}" title="编辑">编辑</a>
                            <a href="javascript:;" title="删除" class="u-del" data-id="{$v.id}"><i class="icon-trash"></i></a>
                            {if $v.s_count}
                                 <a href="{:url('index', ['parent_id' => $v.id])}" title="" class="" data-id="{$v.id}">分店({$v.s_count})</a>
                            {/if}

                        </td>
                    </tr>
                    {/foreach}
<!--                    <tr>-->
<!--                        <td align="center"><input type="checkbox" value="1" lay-skin="primary" lay-filter="select_ids" /></td>-->
<!--                        <td colspan="12" class="m-options"><button class="u-btn u-batch-del"><i class="icon-trash"></i>批量删除</button></td>-->
<!--                    </tr>-->
                    </tbody>
                </table>
            </form>
            {include file="public:page" /}
        </div>
    </div>
</div>
{/block}
{block name="extrajs"}
{include file="laypage" /}
{/block}